package com.cf.base.http.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;
import retrofit2.internal.EverythingIsNonNull;

/**
 * @author yangji
 */
@EverythingIsNonNull
public class LogInterceptor implements Interceptor {

    public enum LogLevel {
        NONE,
        HEADERS,
    }

    private LogLevel level;

    @Override
    public Response intercept(Chain chain) throws IOException {

        if (level == LogLevel.NONE) {
            return chain.proceed(chain.request());
        }

        if (level == LogLevel.HEADERS) {
             chain.request().headers();


        }


        return null;
    }
}
